<?php
/**
 * The following variables are available in this template:
 * - $this: the CrudCode object
 */

echo '<?php'; ?> 

$this->widget('EExcelWriter', array(
  'dataProvider' => $model->search(),
  'title'        => '<?php echo $this->class2id($this->modelClass); ?>',
  'fileName' => '<?php echo $this->class2id($this->modelClass); ?>.xls',
  'stream'       => TRUE,
  'columns' => array(
<?php
$count = 0;
foreach ($this->tableSchema->columns as $column) {
	echo "\t\t" . $this->generateGridViewColumn($this->modelClass, $column).",\n";
}
?>

	),
	
)); ?>